import axios from '../utils/axios'

export const getTopics = (params) => {
    return axios.get('/topics', {params})
}
export const addTopic = (data) => {
    return axios.post('/topics', data)
}
export const deleteTopic = (id) => {
    return axios.delete(`/topics/${id}`)
}
export const updateTopic = (id, data) => {
    return axios.put(`/topics/${id}`, data)
}
